import React from 'react';
import {useLocation} from 'react-router-dom';
import qs from 'qs';
 const ChildATwo = function () {
     const location = useLocation();
    return (
        <>
            {
                Object.entries(qs.parse(location.search.substring(1)))
                    .map((value) => {
                    return (
                        <h3>
                            {value[0]}-{value[1]}
                        </h3>
                    )
                })
            }
        </>
    )

};

 export default ChildATwo;